<template>
	<div class="mine">
		<div class="quick-nav">
			<div class="main-wrap main-header">
				<div class="left">
					<div class="left-sidemenu-wrap">
						<img src="../../src/assets/img/gengduo.png" alt="" class="gengduoxinxi" @click="getShowInfo">
						<div class="left-side" v-if="isInfo">
							<div class="account-info-block">
								<div class="avatarImg">
									<img src="../../src/assets/img/gerenzhongxin.png" alt="">
								</div>
								<div class="rank">VIP 0</div>
								<div class="account-info">
									<div class="name">ceshi66</div>
								</div>
							</div>
							<div class="link-block-section">
								<div class="link-blocks">
									<div class="link-block-item">
										<img src="../../src/assets/img/guanyiwomen.png" alt="">
										<div class="block-item-title">每日任務</div><span class="msg-notification"></span>
									</div>
									<div class="link-block-item">
										<img src="../../src/assets/img/lunpan.png" alt="">
										<div class="block-item-title">輪盤</div>
									</div>
									<div class="link-block-item">
										<img src="../../src/assets/img/tuijian.png" alt="">
										<div class="block-item-title">推薦進度</div>
									</div>
									<div class="link-block-item">
										<img src="../../src/assets/img/vip.png" alt="">
										<div class="block-item-title">VIP</div>
									</div>
								</div>
							</div>
							<div class="link-icons">
								<div class="link-icon-item">
									<img src="../../src/assets/img/youhuihuodong.png" alt="">
									<h4>優惠活動</h4>
								</div>
								<a class="link-icon-item" href="https://direct.lc.chat/16586199/" target="_blank"
									rel="noreferrer">
									<img src="../../src/assets/img/kefy.png" alt="">
									<h4>聯繫我們</h4>
								</a>
								<div class="link-icon-item">
									<img src="../../src/assets/img/gongaozhongxin.png" alt="">
									<h4>公告中心</h4>
								</div>
								<div class="link-icon-item">
									<img src="../../src/assets/img/guanyuwomen.png" alt="">
									<h4>關於我們</h4>
								</div>
								<div class="link-icon-item">
									<img src="../../src/assets/img/xiazai.png" alt="">
									<h4>下載</h4>
								</div>
							</div>
						</div>
					</div>
					<div class="time">20/08/2024 11:11:12 AM (GMT +8)</div>
					<div class="yuyanbox" @click="getShowLang">
						<img src="../../src/assets/images/zh_cn.png" alt="" v-if="$i18n.locale=='zh'">
						<img src="../../src/assets/images/hk.png" alt="" v-if="$i18n.locale=='ft'">
						<img src="../../src/assets/images/en.png" alt="" v-if="$i18n.locale=='en'">
						<div class="dsaf">
							<img src="../../src/assets/img/gengduotyuyan.png" alt="">
						</div>
						<div class="langBox" v-if="isShowLang">
							<div class="langItBox" @click="switchLang('zh')">
								<img src="../../src/assets/images/zh_cn.png" alt="">
							</div>
							<div class="langItBox" @click="switchLang('ft')">
								<img src="../../src/assets/images/hk.png" alt="">
							</div>
							<div class="langItBox" @click="switchLang('en')">
								<img src="../../src/assets/images/en.png" alt="">
							</div>
						</div>
					</div>

				</div>
				<div class="right">
					<div class="header-account">
						<div class="avatar">
							<img src="../../src/assets/img/gerenzhongxintow.png" alt="">
						</div>
						<span>ceshi66</span>
						<div class="wallet"> 0.00 <img src="../../src/assets/img/shuaxin.png" alt=""></div>
						<div class="payment-function"> <img src="../../src/assets/img/chongzhi.png" alt="">充值</div>
						<div class="payment-function"> <img src="../../src/assets/img/tikuan.png" alt="">提款</div>
						<div class="btn-big">
							登出
						</div>
					</div>
				</div>
			</div>
		</div>
		<header>
			<div class="main-header navigation">
				<div class="logo">
					<img src="../../src/assets/images/bg-home-sports.jpg" alt="">
				</div>
				<ul class="nav">
					<li class="nav-sports" data-content="SPORTS" data-title="體育賽事">
						<div class="nav-item">
							<img src="../../src/assets/images/tiyu.webp" alt="">
							<h3>體育賽事</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-live" data-content="LIVE" data-title="真人娛樂">
						<div class="nav-item">
							<img src="../../src/assets/images/zhenren.webp" alt="">
							<h3>真人娛樂</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-egame" data-content="EGAME" data-title="電子遊藝">
						<div class="nav-item egame">
							<img src="../../src/assets/images/laohuji.webp" alt="">
							<h3>電子遊藝</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-chess" data-content="CHESS" data-title="棋牌">
						<div class="nav-item">
							<img src="../../src/assets/images/qipai.webp" alt="">
							<h3>棋牌</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-mpg" data-content="MPG" data-title="捕魚遊戲">
						<div class="nav-item">
							<img src="../../src/assets/images/buyu.webp" alt="">
							<h3>捕魚遊戲</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-animal" data-content="ANIMAL" data-title="動物競技">
						<div class="nav-item">
							<img src="../../src/assets/images/dongwujingji.webp" alt="">
							<h3>動物競技</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-esports" data-content="ESPORTS" data-title="電子競技">
						<div class="nav-item">
							<img src="../../src/assets/images/dianjing.webp" alt="">
							<h3>電子競技</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-lottery" data-content="LOTTERY" data-title="彩票遊戲">
						<div class="nav-item">
							<img src="../../src/assets/images/caipiao.webp" alt="">
							<h3>彩票遊戲</h3>
						</div>
						<div class="submenu">
							<ul>
								<li data-provider="lucky_sports" class="zh-TW"><a data-provider="HK11_SPORTS">
										<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
								<li data-provider="three_sing" class="zh-TW"><a data-provider="WINS"><img
											src="../../src/assets/images/bg-home-sports.jpg" alt="banner-three_sing"
											loading="lazy"></a></li>
							</ul>
						</div>
					</li>
					<li class="nav-promotions" data-content="PROMOTIONS" data-title="優惠活動">
						<div class="nav-item">
							<img src="../../src/assets/images/youhuihuodong.webp" alt="">
							<h3>優惠活動</h3>
						</div>
					</li>
					<li class="nav-page_qr" data-content="PAGE_QR" data-title="手機下載">
						<div class="nav-item">
							<img src="../../src/assets/images/shoujixiazai.png" alt="">
							<h3>手機下載</h3>
						</div>
						<div class="submenu">
							<div class="qr-item">
								<div class="qr-android">
									<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
										loading="lazy">

									<h4 style="margin-top: 5px;">Android 掃一掃</h4>
								</div>
								<div class="qr-android">
									<img src="../../src/assets/images/bg-home-sports.jpg" alt="banner-lucky_sports"
										loading="lazy">
									<h4 style="margin-top: 5px;">iOS 手機掃一掃</h4>
								</div>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</header>
	</div>
</template>

<script>
	export default {
		props: {},
		data() {
			return {
				isInfo: false,
				isShowLang: false,
			}
		},
		created() {},
		mounted() {

		},
		methods: {
			getShowLang() {
				this.isShowLang = !this.isShowLang;
			},
			getShowInfo() {
				this.isInfo = !this.isInfo
			},
		}
	}
</script>

<style scoped>
	* {
		box-sizing: border-box;
	}

	.quick-nav {
		background: #1a1a1a;
		box-shadow: 0 0 24px #000;
		color: #fff;
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
		z-index: 21;
	}

	.quick-nav .main-header {
		align-items: center;
		display: flex;
		height: 50px;
		justify-content: space-between;
		min-width: 1200px;
	}

	.main-wrap {
		margin: 0 auto;
		position: relative;
		padding: 0px 200px;
	}

	.quick-nav .main-header>* {
		align-items: center;
		display: flex;
		position: relative;
	}

	.left-sidemenu-wrap {
		position: relative;
	}

	.gengduoxinxi {
		width: 22px;
		height: 22px;
		margin-right: 15px;
	}

	.left-side {
		background-color: #222;
		border-radius: 0 0 8px 8px;
		box-shadow: 0 5px 20px rgba(0, 0, 0, .5);
		flex-direction: column;
		gap: 15px;
		padding: 15px;
		position: absolute;
		top: 30px;
		width: 300px;
		z-index: 9;
	}

	.account-info-block {
		align-items: center;
		cursor: pointer;
		display: flex;
		position: relative;
	}

	.account-info-block .avatarImg {
		align-items: center;
		background: linear-gradient(180deg, #9e4fff, #5235ff);
		border-radius: 50%;
		display: flex;
		height: 50px;
		justify-content: center;
		position: relative;
		width: 50px;
	}

	.account-info-block .avatarImg img {
		height: 25px;
		width: 25px;
	}

	.account-info-block .rank {
		background: #888;
		border-radius: 50px;
		color: #fff;
		font-size: 12px;
		left: 25px;
		line-height: 1;
		padding: 3px 6px;
		position: absolute;
		top: -2%;
		transform: scale(.75);
		white-space: nowrap;
	}

	.account-info-block .account-info {
		padding-left: 18px;
		word-break: break-all;
	}

	.account-info-block .account-info .name {
		color: #fff;
		font-weight: 700;
	}

	.link-block-section .link-blocks {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin-top: 15px;
	}

	.link-block-section .link-blocks .link-block-item {
		align-items: center;
		background: #333;
		border-radius: 4px;
		color: #ccc;
		cursor: pointer;
		display: flex;
		gap: 8px;
		min-height: 60px;
		padding: 8px;
		position: relative;
		width: calc(50% - 4px);
	}

	.link-block-item img {
		width: 30px;
		height: 30px;
	}

	.link-block-item .block-item-title {
		font-size: 14px;
		font-weight: 400;
		line-height: 1.2;
	}

	.msg-notification {
		background: red;
		border-radius: 50%;
		height: 10px;
		left: -3px;
		position: absolute;
		top: -3px;
		width: 10px;
	}

	.link-icons {
		margin-top: 10px;
	}

	.link-icons .link-icon-item {
		align-items: center;
		color: #ccc;
		cursor: pointer;
		display: flex;
		padding: 7px 0;
		text-decoration: none;
	}

	.link-icons .link-icon-item img {
		width: 27px;
		height: 27px;
	}

	.link-icon-item>h4 {
		align-items: center;
		display: flex;
		font-size: 14px;
		font-weight: 400;
		padding-left: 10px;
		position: relative;
		margin: 0 auto;
		width: calc(100% - 40px);
	}

	.quick-nav .main-header .time {
		color: #888;
		font-size: 12px;
		margin-right: 10px;
	}



	.quick-nav .main-header .header-account {
		align-items: center;
		display: flex;
		gap: 15px;
		position: relative;
	}

	.quick-nav .main-header .header-account .playerid {
		cursor: pointer;
	}

	.quick-nav .main-header .header-account .payment-function {
		cursor: pointer;
		display: flex;
		align-items: center;
	}

	.payment-function img {
		width: 26px;
		height: 26px;
	}

	.avatar img {
		width: 30px;
		height: 30px;
	}

	.quick-nav .main-header .btn-big {
		background: linear-gradient(180deg, #19f0ca, #05c8c6);
		border-radius: 5px;
		color: #fff;
		font-size: 14px;
		cursor: pointer;
		height: 30px;
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 90px;
		transition: .2s;
	}

	/* 语言 */
	.yuyanbox:after {
		background: #888;
		content: "";
		height: 25px;
		position: absolute;
		width: 1px;
	}

	.yuyanbox {
		display: flex;
		position: relative;
		align-items: center;
		cursor: pointer;
	}

	.dsaf {
		width: 15px;
		height: 15px;
		border-radius: 50%;
		background-color: #888888;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-left: 7px;
	}

	.dsaf img {
		width: 13px;
		height: 13px;
	}

	.yuyanbox>img {
		width: 25px;
		height: 25px;
		margin-left: 10px;
		border-radius: 50%;
	}

	.langBox {
		position: absolute;
		width: 50px;
		background-color: #2f2f2f;
		font-size: 13px;
		color: #fff;
		bottom: -130px;
		right: 0px;
		border-radius: 5px;
	}

	.langItBox {
		width: 100%;
		padding-left: 10px;
		display: flex;
		align-items: center;
		height: 40px;
	}

	.langItBox img {
		width: 25px;
		height: 25px;
		border-radius: 50%;
		margin-right: 3px;
	}


	header {
		background: #1d1d1d;
		border-bottom: 1px solid rgba(255, 255, 255, .05);
		height: 90px;
		left: 0;
		padding: 0px 200px;
		position: absolute;
		top: 50px;
		width: 100%;
		z-index: 20;
	}

	header .navigation {
		align-items: center;
		display: flex;
		justify-content: space-between;
		margin: auto;
		position: static;
	}

	header .logo img {
		cursor: pointer;
		flex: 0 0 200px;
		height: 69px;
		width: 200px;
		margin-top: 10px;
	}

	.nav {
		align-items: center;
		display: flex;
		flex: 1;
		padding: 0 20px;
		margin: 0;
	}

	ul {
		list-style: none;
	}

	.nav .nav-item {
		align-items: center;
		color: #777;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		font-size: 13px;
		gap: 8px;
		height: 90px;
		justify-content: center;
		padding: 0 20px;
		position: relative;
		text-align: center;
		white-space: nowrap;
	}

	.nav .nav-item:hover {
		color: #fff;
	}

	.nav .nav-item img {
		width: 45px;
		height: 45px;
	}

	/* .nav .nav-item a {
		color: #777;
		text-decoration: none;
	} */

	.nav .nav-item h3 {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		font-weight: 400;
		justify-content: center;
		margin: 0;
		font-size: 14px;
		width: 100%;
	}

	.nav .submenu {
		background: url('../../src/assets/images/sub-menu-bg.webp');
		box-shadow: 0 1px 3px rgba(0, 0, 0, .8);
		height: 0;
		left: 0;
		min-width: 1004px;
		opacity: 0;
		overflow: hidden;
		position: absolute;
		text-align: center;
		transition: .3s;
		width: 100%;
	}

	.nav .submenu ul {
		font-size: 0;
		height: 300px;
		margin: auto;
		position: relative;
	}

	.nav .submenu ul li {
		display: inline-block;
		height: 100%;
		position: relative;
	}

	.nav .submenu ul li a {
		display: block;
		height: 100%;
		padding: 0 15px;
		position: relative;
		transition: .3s;
	}

	.submenu ul li a:hover {
		background-color: rgba(255, 255, 255, .1);
	}

	.submenu ul li a:hover:after {
		background-color: #5235ff;
		bottom: 0;
		content: "";
		height: 4px;
		left: 0;
		position: absolute;
		width: 100%;
	}

	.nav .submenu ul li img {
		display: block;
		width: 200px;
		height: 80%;
		position: relative;
		top: 10%;
	}

	.qr-item {
		width: 30%;
		height: 100%;
		display: flex;
		margin: 0 auto;
		justify-content: space-between;
		align-items: center;

	}

	.qr-android {
		width: 150px;
	}

	.qr-android img {
		width: 150px;
		height: auto;
	}

	.qr-android h4 {
		font-weight: 400;
		font-size: 14px;
	}

	.nav .nav-item:hover+.submenu {
		height: 300px;
		opacity: 1;
	}

	.submenu:hover {
		height: 300px;
		opacity: 1;
	}

	.wallet {
		display: flex;
		align-items: center;
	}

	.wallet img {
		width: 20px;
		height: 20px;
		margin: 0px 10px 0px 3px;
	}
</style>